import Widget from require "lapis.html"
class UserLogin extends  Widget
  content: =>
    h2 "Login"

    form action: @url_for"user_login", method: "POST", class: "form", ->
      div class: "form-group", ->
        label for: "name_field", "Username or email"
        input class:"form-control", type: "text", name: "name", id: "name_field", autofocus: "autofocus"

      div class: "form-group", ->
        label for: "sex_field", "sex"
        input class:"form-control", type: "text", name: "sex", id: "sex_field"

      div class: "form-group", ->
        label for: "profession_field", "profession"
        input class:"form-control", type: "text", name: "profession", id: "profession_field"

      div class: "form-group", ->
        label for: "page_field", "home page"
        input class:"form-control", type: "text", name: "page", id: "page_field"

      div class: "form-group", ->
        label for: "habits", "habits"
        input class:"form-control", type: "text", name: "habits", id: "habits_field"

      div class: "form-group", ->
        label for: "age_field", "age"
        input class:"form-control", type: "text", name: "age", id: "age_field"

      div class: "form-group", ->
        label for: "study_field", "study"
        input class:"form-control", type: "text", name: "study", id: "study_field"

      div class: "form-group", ->
        label for: "note_field", "note"
        input class:"form-control", type: "text", name: "note", id: "note_field"

      div class: "button_row", ->
        input type: "submit"

        raw " &middot; "
        raw " &middot; "
        raw " &middot; "
        a href: @url_for"user_forget_password", "Forgot Password"

